package com.pai4j.common.enums;

import lombok.Getter;

@Getter
public enum DeleteFlagCodeEnum {
    
    DELETE(0, "已删除"),
    UN_DELETE(1, "未删除");
    
    private Integer code;
    private String name;
    
    DeleteFlagCodeEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
    
    /**
     *  判断是否已删除
     *
     * @author: CYM-pai
     * @date: 2025/04/17 09:54
     **/
    
    public static boolean isDelete(Integer deleteFlag) {
        return DELETE.getCode().equals(deleteFlag);
    }
}
